package com.ruiysoft.entity.integral;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-04-13
 */
public class Integral extends Model<Integral> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shop_id")
    private Long shopId;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 积分规则
     */
    private Long integral;

    /**
     * 启用禁用（0,开通1,已关闭，2未开通）
     */
    @TableField("is_use")
    private Integer isUse;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public Integral setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public Integral setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public String getPhone() {
        return phone;
    }

    public Integral setPhone(String phone) {
        this.phone = phone;
        return this;
    }
    public Long getIntegral() {
        return integral;
    }

    public Integral setIntegral(Long integral) {
        this.integral = integral;
        return this;
    }
    public Integer getIsUse() {
        return isUse;
    }

    public Integral setIsUse(Integer isUse) {
        this.isUse = isUse;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public Integral setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Integral{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", phone=" + phone +
        ", integral=" + integral +
        ", isUse=" + isUse +
        ", updateTime=" + updateTime +
        "}";
    }
}
